#include "ConnectReqDispatcher.h"
#include "GlobalContext.h"

ITransHandler::ExecuteResultCode ConnectReqDispatcher::Execute(ClientContext &client,OVERLAPPED *ovl)
{
	ClientContextExt &extObj=client.ExtContext();
	ITransHandler::ExecuteResultCode result;
	if(ovl==client.OVL())
	{
		result=extObj.SrcHandler()->Execute(client,ovl);
	}
	else
	{
		result=extObj.DestHandler()->Execute(client,ovl);
	}
	return result;
}